<?php
namespace App\Library; class Response { public static function json($spfda58c = array(), $spaa7124 = 200, array $spdc767d = array(), $spf2bf65 = 0) { return response()->json($spfda58c, $spaa7124, $spdc767d, $spf2bf65); } public static function success($spfda58c = array()) { return self::json(array('message' => 'success', 'data' => $spfda58c)); } public static function fail($sp1955ac = 'fail', $spfda58c = array()) { return self::json(array('message' => $sp1955ac, 'data' => $spfda58c), 500); } public static function forbidden($sp1955ac = 'forbidden', $spfda58c = array()) { return self::json(array('message' => $sp1955ac, 'data' => $spfda58c), 403); } }